<?php

namespace App\Modules\Admin\Providers;

use Illuminate\Support\ServiceProvider;

/**
 * 仓库绑定
 */
class RepositoryServiceProvider extends ServiceProvider
{
    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        // 后台管理员
        $this->app->bind(
            \App\Modules\Admin\Repositories\Contracts\AdminUserRepository::class,
            \App\Modules\Admin\Repositories\Impl\AdminUserRepositoryImpl::class
        );
        // 后台角色
        $this->app->bind(
            \App\Modules\Admin\Repositories\Contracts\AdminRoleRepository::class,
            \App\Modules\Admin\Repositories\Impl\AdminRoleRepositoryImpl::class
        );
        // 后台菜单
        $this->app->bind(
            \App\Modules\Admin\Repositories\Contracts\AdminMenuRepository::class,
            \App\Modules\Admin\Repositories\Impl\AdminMenuRepositoryImpl::class
        );
        // 文化之声
        $this->app->bind(
            \App\Modules\Admin\Repositories\Contracts\CultureVoiceRepository::class,
            \App\Modules\Admin\Repositories\Impl\CultureVoiceRepositoryImpl::class
        );
        // 非遗
        $this->app->bind(
            \App\Modules\Admin\Repositories\Contracts\CulturalHeritageRepository::class,
            \App\Modules\Admin\Repositories\Impl\CulturalHeritageRepositoryImpl::class
        );
        // 活动
        $this->app->bind(
            \App\Modules\Admin\Repositories\Contracts\ActivityRepository::class,
            \App\Modules\Admin\Repositories\Impl\ActivityRepositoryImpl::class
        );
        // 活动申请
        $this->app->bind(
            \App\Modules\Admin\Repositories\Contracts\ActivityFormRepository::class,
            \App\Modules\Admin\Repositories\Impl\ActivityFormRepositoryImpl::class
        );
        //:end-bindings:
    }
}
